Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional monitoring #57

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conditional monitoring #57

wants to merge 2 commits into from

Conversation

lgarvey
Copy link
Member

@lgarvey lgarvey commented Mar 27, 2020

This PR adds logic to make company monitoring optional per API user. This means that other projects can use the DNB service -- specifically the companies list API endpoint -- without impacting existing API users.

Note that whilst automatic monitoring may be disabled, the local database will still be updated with company details if the DNB company data differs from the local data. This will probably need to be investigated further/discussed as it will cause companies to appear in the company updates list.

Copy link
Contributor

@currycoder currycoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one question inline

]

operations = [
migrations.AddField(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should their be a data migration that follows this which ensures that monitoring is enabled for the Data Hub user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants